/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package logic;

import java.util.LinkedList;
import java.util.Queue;

/**
 * WordSetPriorityQueue
 * @author Jorge Lainfiesta 11142
 * @since Oct 18, 2012
 * @version 1
 */
public class WordSetLinkedList implements WordSet {

    LinkedList<Word> base;
    
    public WordSetLinkedList(){
        base = new LinkedList<Word>();
    }
    @Override
    public void add(Word wordObject) {
       // if(!base.contains(wordObject))
            base.add(wordObject);
    }

    @Override
    public Word get(Word word) {
        int index = base.indexOf(word);
        if(index==-1) return null;
        else
            return base.get(index);
    }

}
